{% load i18n %}
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  <title>{% block title %}{% endblock %}</title>
</head>
<body>
<div>
  <h1><a href="/">{{ site }}</a></h1>
</div>
<div id="content">
{% block content %}
{% endblock %}
</div>

{% if 1 or user.is_authenticated %}
<div>
<ul>
<li><a href="?edit">{% trans "Edit" %}</a></li>
<li><a href="?delete">{% trans "Delete" %}</a></li>
<li><a href="?new">{% trans "New Page" %}</a></li>
<li><a href="?attach">{% trans "Attach" %}</a></li>
<li><a href="?diff">{% trans "Diff" %}</a></li>
</ul>
</div>
{% endif %}

<h2>{% trans "Recent Changes" %}</h2>
{% for change in changes %}
  {% ifchanged change.date.date %}
    {% if not forloop.first %}</ul>{% endif %}
    <h3>{{ change.date|date:"Y-m-d" }}</h3>
    <ul>
  {% endifchanged %}
    <li><a href="{% url cocowiki.wiki.views.show change.file %}" title="{{ change.date }}">{{ change.file }}</a></li>
{% endfor %}
    </ul>

</body>
</html>
